<?php
namespace controller\Home;

class Card extends Base{

    public $isApi = true;
    public $a = '';

    public function __construct()
    {
        $this->a = 'fdasfdsaf';
    }

    public function c()
    {
        $data = $this->test();
        return 'ccc'.$data.$this->a;
    }

    public function test()
    {
        return ['info'=>$this->info->unionid];
    }

    public function get_user_info()
    {
        $da = json_decode($this->request->rawContent());
        return ['info'=>$da->unionid];
    }

    public function test_rr()
    {
        $a = rr();
        return ['info'=>$a];
    }

}